package Day08.Demo03;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/21 13:19
 */
public class Demo01 {
    public static void main(String[] args) {
        Student one = new Student("张丹",18);
        one.room = "104教室";
        System.out.println("姓名是："+one.getName()+
                "，年龄是："+one.getAge()+
                "，教室是："+one.room+"，学号是："+one.getId());
        Student two = new Student("李思思",28);
        System.out.println("姓名是："+two.getName()+
                "，年龄是："+two.getAge()
                +"，教室是："+two.room+"，学号是："+two.getId());

    }
}
